<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php $this->load->view('head'); ?>
</head>

<body>
	<?php $this->load->view('header_admin.php'); ?>
	
	<!-- Content Area -->
	<div class="wrapper-world content">
		<h1>Issue Invoice</h1>
		
		<div class="wrapper">
			<div class="whitebox-top"><div class="whitebox-bot"><div class="whitebox">
				<ul>
					<li><span>Client</span> <span><?php echo anchor('viewuser/'.$jobOrder->owner_id, $jobUser->name); ?></span></li>
					<li><span>Client ID</span> <span><?php echo $jobUser->id; ?></span></li>
					<li><span>Company</span> <span><?php echo $jobUser->company; ?></span></li>
					<li><span>e-mail</span> <span><?php echo $jobUser->username; ?></span></li>
					<li><span>Telephone</span> <span><?php echo $jobUser->phone; ?></span></li>
					<span class="clr"></span>
				</ul>
				
				<div class="clr"></div>
			</div></div></div>
		</div>
		
		<h1>Additional fields</h1>
		
		<div class="wrapper">
			<?php echo form_open('invoices/gen/'.$jobOrder->gid, array('class' => 'standard-form', 'id' => 'addInvoice')); ?>
				<div class="one">
					<label>Field name</label>
					<div class="type-text"><input type="text" id="name" name="fname[]" /></div>
					<div class="clr"></div>
				</div>
				<div class="one">
					<label>Field value</label>
					<div class="type-text"><input type="text" id="val" name="fval[]" /></div>
					<div class="clr"></div>
				</div>
				<div class="one no-left" id="addFieldButton">
					<a href="#" onclick="addInvoiceField(); return false;"><em>Add another field</em></a>
					<div class="clr"></div>
				</div>
				<div class="one no-left">
					<div class="type-btn"><input type="submit" value="Submit" name="issue" /></div>
					<div class="clr"></div>
				</div>
			</form>
		</div>
	</div>	
	<script type="text/javascript" src="<?php echo site_url(); ?>assets/js/invoices.js"></script>
		<!--          -----------------------------------------------------------------------------          -->
	
	
		
	<div class="wrapper-world footer-top">
		<div class="wrapper"></div>	
	</div>
	
	<?php $this->load->view('footer'); ?>
</body>
</html>
